<h3>
	<span class="left"><%= t(:a_m_navigation)%></span>
	<span class="right" style="margin-right:15px;"><%= link_to t(:a_m_navigation_add), '/admin/app/add_navigation'%></span>
</h3>
<div class="content2">
	<table class="list_table">
		<thead>
			<tr style="text-align:center;">
				<th width="20%" align="left" ><%= t(:a_m_navigation_title)%></th>
				<th width="10%"><%= t(:a_m_navigation_location)%></th>
				<th width="20%"><%= t(:a_link)%></th>
				<th width="15%"><%= t(:a_m_navigation_new_open)%></th>
				<th width="10%"><%= t(:a_show)%></th>
				<th width="10%"><%= t(:a_sort)%></th>
				<th width="20%"><%= t(:a_operate)%></th>
			</tr>
		</thead>
		<tbody>
			<% @navigations.each do |navi|%>
			<tr style="text-align:center;">
				<td align="left">&nbsp;&nbsp;<%= navi.title%></td>
				<td>&nbsp;<?php if($value['nav_type'] == 'header') echo $language->r('a_m_navigation_header'); else if($value['nav_type'] == 'middle') echo $language->r('a_m_navigation_middle'); else echo $language->r('a_m_navigation_footer');?></td>
				<td><?php echo $value['link'];?></td>
				<td><img src="<?php  if($value['open_new']) echo 'skin/images/yes.gif'; else echo 'skin/images/no.gif';?>" border="0" /></td>
				<td><img src="<?php  if($value['is_show']) echo 'skin/images/yes.gif'; else echo 'skin/images/no.gif';?>" border="0" /></td>
				<td>
				<span id="sortOrderShow_<?php echo $value['nav_id'];?>" onclick="javascript:document.getElementById('sortOrder_<?php echo $value['nav_id'];?>').style.display='block'; this.style.display='none';" style="color:#000000;" >
				</span>
				<input type="text" id="sortOrder_<?php echo $value['nav_id'];?>" onblur="changeSortOrder(this.value,<?php echo $value['nav_id'];?>);" style="display:none;width:60px;" maxlength="3" value="<?php echo $value['sort_order'];?>" />
				</td>
				<td>
					<a href="m.php?app=navigation_edit&id=<?php echo $value['nav_id'];?>"><?php echo $language->r('a_update'); ?></a>
					<a href="a.php?act=navigation_del&id=<?php echo $value['nav_id'];?>" onclick="return confirm('<?php echo $language->r('a_m_vavigation_del_tip'); ?>');"><?php echo $language->r('a_delete'); ?></a>
				</td>
			</tr>
			<% end%>
		</tbody>
	</table>
</div>
